home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / User Contributions / oodles-of-utils.sea / oodles-of-utils / mixin-madness / simple-view-mixins / selectable-svm.lisp < prev    next >
MacBinary  |  1992-03-03  |  10.1 KB  |  [TEXT/CCL2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Mar 3 17:34:40 1992, modified Tue Mar 3 17:34:40 1992, creator Common Lisp 2, type ASCII, 9663 bytes "selectable-svm.lisp" , at 0x263f 442 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CCL2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 13 73 65 6c 65 63 74 | 61 62 6c 65 2d 73 76 6d |..select|able-svm|
|00000010| 2e 6c 69 73 70 00 00 00 | 00 00 00 00 00 00 00 00 |.lisp...|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 43 4c | 32 01 00 00 00 00 00 00 |.TEXTCCL|2.......|
|00000050| 00 00 00 00 00 25 bf 00 | 00 01 ba a5 d9 af 80 a5 |.....%..|........|
|00000060| d9 af 80 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 95 cf 00 00 |........|........|
|00000080| 28 69 6e 2d 70 61 63 6b | 61 67 65 20 3a 6f 6f 75 |(in-pack|age :oou|
|00000090| 29 0d 28 6f 6f 75 2d 70 | 72 6f 76 69 64 65 20 3a |).(oou-p|rovide :|
|000000a0| 73 65 6c 65 63 74 61 62 | 6c 65 2d 73 76 6d 29 0d |selectab|le-svm).|
|000000b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000000f0| 3b 3b 3b 3b 3b 3b 0d 3b | 3b 20 73 65 6c 65 63 74 |;;;;;;.;|; select|
|00000100| 61 62 6c 65 2d 73 76 6d | 2e 4c 69 73 70 0d 3b 3b |able-svm|.Lisp.;;|
|00000110| 0d 3b 3b 20 43 6f 70 79 | 72 69 67 68 74 20 a9 20 |.;; Copy|right . |
|00000120| 31 39 39 32 20 4e 6f 72 | 74 68 77 65 73 74 65 72 |1992 Nor|thwester|
|00000130| 6e 20 55 6e 69 76 65 72 | 73 69 74 79 20 49 6e 73 |n Univer|sity Ins|
|00000140| 74 69 74 75 74 65 20 66 | 6f 72 20 74 68 65 20 4c |titute f|or the L|
|00000150| 65 61 72 6e 69 6e 67 20 | 53 63 69 65 6e 63 65 73 |earning |Sciences|
|00000160| 0d 3b 3b 20 41 6c 6c 20 | 52 69 67 68 74 73 20 52 |.;; All |Rights R|
|00000170| 65 73 65 72 76 65 64 0d | 3b 3b 0d 3b 3b 20 61 75 |eserved.|;;.;; au|
|00000180| 74 68 6f 72 3a 20 4d 69 | 63 68 61 65 6c 20 53 2e |thor: Mi|chael S.|
|00000190| 20 45 6e 67 62 65 72 0d | 3b 3b 0d 3b 3b 20 6d 69 | Engber.|;;.;; mi|
|000001a0| 78 69 6e 73 20 66 6f 72 | 20 73 65 6c 65 63 74 69 |xins for| selecti|
|000001b0| 6e 67 20 76 69 65 77 73 | 0d 3b 3b 3b 3b 3b 3b 3b |ng views|.;;;;;;;|
|000001c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000001f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|00000200| 0d 28 6f 6f 75 2d 64 65 | 70 65 6e 64 65 6e 63 69 |.(oou-de|pendenci|
|00000210| 65 73 0d 20 3a 73 69 6d | 70 6c 65 2d 76 69 65 77 |es. :sim|ple-view|
|00000220| 2d 63 65 29 0d 0d 0d 28 | 65 78 70 6f 72 74 20 27 |-ce)...(|export '|
|00000230| 28 73 65 6c 65 63 74 61 | 62 6c 65 2d 73 76 6d 20 |(selecta|ble-svm |
|00000240| 73 65 6c 65 63 74 61 62 | 6c 65 2d 72 62 2d 73 76 |selectab|le-rb-sv|
|00000250| 6d 20 73 65 6c 65 63 74 | 61 62 6c 65 2d 63 62 2d |m select|able-cb-|
|00000260| 73 76 6d 0d 20 20 20 20 | 20 20 20 20 20 20 73 65 |svm. | se|
|00000270| 6c 65 63 74 65 64 2d 69 | 74 65 6d 73 20 68 69 6c |lected-i|tems hil|
|00000280| 69 74 65 2d 73 65 6c 65 | 63 74 65 64 2d 69 74 65 |ite-sele|cted-ite|
|00000290| 6d 0d 20 20 20 20 20 20 | 20 20 20 20 29 29 0d 0d |m. | ))..|
|000002a0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002b0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002c0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000002e0| 3b 3b 3b 3b 3b 3b 0d 0d | 28 64 65 66 63 6c 61 73 |;;;;;;..|(defclas|
|000002f0| 73 20 73 65 6c 65 63 74 | 61 62 6c 65 2d 73 76 6d |s select|able-svm|
|00000300| 20 28 29 0d 20 20 28 28 | 73 65 6c 65 63 74 69 6f | (). ((|selectio|
|00000310| 6e 2d 63 6c 75 73 74 65 | 72 20 20 20 20 20 20 3a |n-cluste|r :|
|00000320| 69 6e 69 74 61 72 67 20 | 3a 73 65 6c 65 63 74 69 |initarg |:selecti|
|00000330| 6f 6e 2d 63 6c 75 73 74 | 65 72 0d 20 20 20 20 20 |on-clust|er. |
|00000340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000350| 20 20 20 20 20 20 3a 61 | 63 63 65 73 73 6f 72 20 | :a|ccessor |
|00000360| 73 65 6c 65 63 74 69 6f | 6e 2d 63 6c 75 73 74 65 |selectio|n-cluste|
|00000370| 72 29 0d 20 20 20 28 73 | 65 6c 65 63 74 65 64 2d |r). (s|elected-|
|00000380| 70 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 69 |p | :i|
|00000390| 6e 69 74 61 72 67 20 3a | 73 65 6c 65 63 74 65 64 |nitarg :|selected|
|000003a0| 2d 70 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |-p. | |
|000003b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3a 61 | | :a|
|000003c0| 63 63 65 73 73 6f 72 20 | 73 65 6c 65 63 74 65 64 |ccessor |selected|
|000003d0| 2d 70 29 0d 20 20 20 28 | 61 6c 6c 2d 64 72 61 67 |-p). (|all-drag|
|000003e0| 2d 61 63 74 69 6f 6e 73 | 2d 70 20 20 20 20 20 3a |-actions|-p :|
|000003f0| 69 6e 69 74 61 72 67 20 | 3a 61 6c 6c 2d 64 72 61 |initarg |:all-dra|
|00000400| 67 2d 61 63 74 69 6f 6e | 73 2d 70 0d 20 20 20 20 |g-action|s-p. |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000420| 20 20 20 20 20 20 20 3a | 61 63 63 65 73 73 6f 72 | :|accessor|
|00000430| 20 61 6c 6c 2d 64 72 61 | 67 2d 61 63 74 69 6f 6e | all-dra|g-action|
|00000440| 73 2d 70 29 0d 20 20 20 | 28 61 6c 6c 2d 64 72 61 |s-p). |(all-dra|
|00000450| 67 2d 65 6e 64 2d 61 63 | 74 69 6f 6e 73 2d 70 20 |g-end-ac|tions-p |
|00000460| 3a 69 6e 69 74 61 72 67 | 20 3a 61 6c 6c 2d 64 72 |:initarg| :all-dr|
|00000470| 61 67 2d 65 6e 64 2d 61 | 63 74 69 6f 6e 73 2d 70 |ag-end-a|ctions-p|
|00000480| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000490| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 61 63 63 | | :acc|
|000004a0| 65 73 73 6f 72 20 61 6c | 6c 2d 64 72 61 67 2d 65 |essor al|l-drag-e|
|000004b0| 6e 64 2d 61 63 74 69 6f | 6e 73 2d 70 29 0d 20 20 |nd-actio|ns-p). |
|000004c0| 20 28 61 6c 6c 2d 64 72 | 6f 70 2d 61 63 74 69 6f | (all-dr|op-actio|
|000004d0| 6e 73 2d 70 20 20 20 20 | 20 3a 69 6e 69 74 61 72 |ns-p | :initar|
|000004e0| 67 20 3a 61 6c 6c 2d 64 | 72 6f 70 2d 61 63 74 69 |g :all-d|rop-acti|
|000004f0| 6f 6e 73 2d 70 0d 20 20 | 20 20 20 20 20 20 20 20 |ons-p. | |
|00000500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000510| 20 3a 61 63 63 65 73 73 | 6f 72 20 61 6c 6c 2d 64 | :access|or all-d|
|00000520| 72 6f 70 2d 61 63 74 69 | 6f 6e 73 2d 70 29 29 0d |rop-acti|ons-p)).|
|00000530| 20 20 28 3a 64 65 66 61 | 75 6c 74 2d 69 6e 69 74 | (:defa|ult-init|
|00000540| 61 72 67 73 0d 20 20 20 | 20 3a 73 65 6c 65 63 74 |args. | :select|
|00000550| 69 6f 6e 2d 63 6c 75 73 | 74 65 72 20 6e 69 6c 0d |ion-clus|ter nil.|
|00000560| 20 20 20 20 3a 73 65 6c | 65 63 74 65 64 2d 70 20 | :sel|ected-p |
|00000570| 6e 69 6c 0d 20 20 20 20 | 3a 61 6c 6c 2d 64 72 61 |nil. |:all-dra|
|00000580| 67 2d 61 63 74 69 6f 6e | 73 2d 70 20 74 0d 20 20 |g-action|s-p t. |
|00000590| 20 20 3a 61 6c 6c 2d 64 | 72 61 67 2d 65 6e 64 2d | :all-d|rag-end-|
|000005a0| 61 63 74 69 6f 6e 73 2d | 70 20 74 0d 20 20 20 20 |actions-|p t. |
|000005b0| 3a 61 6c 6c 2d 64 72 6f | 70 2d 61 63 74 69 6f 6e |:all-dro|p-action|
|000005c0| 73 2d 70 20 74 0d 20 20 | 20 20 29 29 0d 0d 3b 3b |s-p t. | ))..;;|
|000005d0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000005e0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|000005f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000600| 0d 3b 3b 20 63 6c 69 63 | 6b 20 68 61 6e 64 6c 69 |.;; clic|k handli|
|00000610| 6e 67 0d 0d 28 64 65 66 | 6d 65 74 68 6f 64 20 76 |ng..(def|method v|
|00000620| 69 65 77 2d 63 6c 69 63 | 6b 2d 65 76 65 6e 74 2d |iew-clic|k-event-|
|00000630| 68 61 6e 64 6c 65 72 20 | 3a 62 65 66 6f 72 65 20 |handler |:before |
|00000640| 28 28 73 76 20 73 65 6c | 65 63 74 61 62 6c 65 2d |((sv sel|ectable-|
|00000650| 73 76 6d 29 20 77 68 65 | 72 65 29 0d 20 20 28 64 |svm) whe|re). (d|
|00000660| 65 63 6c 61 72 65 20 28 | 69 67 6e 6f 72 65 20 77 |eclare (|ignore w|
|00000670| 68 65 72 65 29 29 0d 20 | 20 28 77 69 74 68 2d 66 |here)). | (with-f|
|00000680| 6f 63 75 73 65 64 2d 76 | 69 65 77 20 28 66 6f 63 |ocused-v|iew (foc|
|00000690| 75 73 69 6e 67 2d 76 69 | 65 77 20 73 76 29 0d 20 |using-vi|ew sv). |
|000006a0| 20 20 20 28 69 66 20 28 | 73 65 6c 65 63 74 65 64 | (if (|selected|
|000006b0| 2d 70 20 73 76 29 0d 20 | 20 20 20 20 20 28 63 6c |-p sv). | (cl|
|000006c0| 69 63 6b 2d 73 65 6c 65 | 63 74 65 64 2d 69 74 65 |ick-sele|cted-ite|
|000006d0| 6d 20 73 76 20 28 73 68 | 69 66 74 2d 6b 65 79 2d |m sv (sh|ift-key-|
|000006e0| 70 29 29 0d 20 20 20 20 | 20 20 28 63 6c 69 63 6b |p)). | (click|
|000006f0| 2d 75 6e 73 65 6c 65 63 | 74 65 64 2d 69 74 65 6d |-unselec|ted-item|
|00000700| 20 73 76 20 28 73 68 69 | 66 74 2d 6b 65 79 2d 70 | sv (shi|ft-key-p|
|00000710| 29 29 29 29 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |)))))..(|defmetho|
|00000720| 64 20 63 6c 69 63 6b 2d | 75 6e 73 65 6c 65 63 74 |d click-|unselect|
|00000730| 65 64 2d 69 74 65 6d 20 | 28 28 73 76 20 73 65 6c |ed-item |((sv sel|
|00000740| 65 63 74 61 62 6c 65 2d | 73 76 6d 29 20 73 68 69 |ectable-|svm) shi|
|00000750| 66 74 2d 70 29 0d 20 20 | 28 75 6e 6c 65 73 73 20 |ft-p). |(unless |
|00000760| 73 68 69 66 74 2d 70 20 | 28 64 65 73 65 6c 65 63 |shift-p |(deselec|
|00000770| 74 2d 61 6c 6c 20 73 76 | 20 3a 64 72 61 77 2d 6e |t-all sv| :draw-n|
|00000780| 6f 77 2d 70 20 74 29 29 | 0d 20 20 28 73 65 6c 65 |ow-p t))|. (sele|
|00000790| 63 74 2d 69 74 65 6d 20 | 73 76 20 3a 64 72 61 77 |ct-item |sv :draw|
|000007a0| 2d 6e 6f 77 2d 70 20 74 | 29 29 0d 0d 28 64 65 66 |-now-p t|))..(def|
|000007b0| 6d 65 74 68 6f 64 20 63 | 6c 69 63 6b 2d 73 65 6c |method c|lick-sel|
|000007c0| 65 63 74 65 64 2d 69 74 | 65 6d 20 28 28 73 76 20 |ected-it|em ((sv |
|000007d0| 73 65 6c 65 63 74 61 62 | 6c 65 2d 73 76 6d 29 20 |selectab|le-svm) |
|000007e0| 73 68 69 66 74 2d 70 29 | 0d 20 20 28 77 68 65 6e |shift-p)|. (when|
|000007f0| 20 73 68 69 66 74 2d 70 | 20 28 64 65 73 65 6c 65 | shift-p| (desele|
|00000800| 63 74 2d 69 74 65 6d 20 | 73 76 20 3a 64 72 61 77 |ct-item |sv :draw|
|00000810| 2d 6e 6f 77 2d 70 20 74 | 29 29 29 0d 0d 3b 3b 3b |-now-p t|)))..;;;|
|00000820| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000830| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000840| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |;;;;;;;;|;;;;;;;.|
|00000850| 3b 3b 20 64 72 61 77 69 | 6e 67 20 28 68 69 6c 69 |;; drawi|ng (hili|
|00000860| 74 69 6e 67 29 0d 0d 28 | 64 65 66 6d 65 74 68 6f |ting)..(|defmetho|
|00000870| 64 20 76 69 65 77 2d 64 | 72 61 77 2d 63 6f 6e 74 |d view-d|raw-cont|
|00000880| 65 6e 74 73 20 3a 61 66 | 74 65 72 20 28 28 73 76 |ents :af|ter ((sv|
|00000890| 20 73 65 6c 65 63 74 61 | 62 6c 65 2d 73 76 6d 29 | selecta|ble-svm)|
|000008a0| 29 0d 20 20 28 77 68 65 | 6e 20 28 73 65 6c 65 63 |). (whe|n (selec|
|000008b0| 74 65 64 2d 70 20 73 76 | 29 20 28 68 69 6c 69 74 |ted-p sv|) (hilit|
|000008c0| 65 2d 73 65 6c 65 63 74 | 65 64 2d 69 74 65 6d 20 |e-select|ed-item |
|000008d0| 73 76 20 74 29 29 29 0d | 0d 28 64 65 66 6d 65 74 |sv t))).|.(defmet|
|000008e0| 68 6f 64 20 68 69 6c 69 | 74 65 2d 73 65 6c 65 63 |hod hili|te-selec|
|000008f0| 74 65 64 2d 69 74 65 6d | 20 28 28 73 76 20 73 65 |ted-item| ((sv se|
|00000900| 6c 65 63 74 61 62 6c 65 | 2d 73 76 6d 29 20 68 69 |lectable|-svm) hi|
|00000910| 6c 69 74 65 2d 66 6c 61 | 67 29 0d 20 20 28 77 69 |lite-fla|g). (wi|
|00000920| 74 68 2d 66 6f 63 75 73 | 65 64 2d 76 69 65 77 20 |th-focus|ed-view |
|00000930| 28 66 6f 63 75 73 69 6e | 67 2d 76 69 65 77 20 73 |(focusin|g-view s|
|00000940| 76 29 0d 20 20 20 20 28 | 68 69 6c 69 74 65 2d 76 |v). (|hilite-v|
|00000950| 69 65 77 20 73 76 20 68 | 69 6c 69 74 65 2d 66 6c |iew sv h|ilite-fl|
|00000960| 61 67 29 29 29 0d 0d 3b | 3b 3b 3b 3b 3b 3b 3b 3b |ag)))..;|;;;;;;;;|
|00000970| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000980| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00000990| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 0d 3b 3b 20 68 61 6e |;;;;;;;;|;.;; han|
|000009a0| 64 6c 69 6e 67 20 74 68 | 65 20 63 75 72 72 65 6e |dling th|e curren|
|000009b0| 74 20 73 65 6c 65 63 74 | 69 6f 6e 0d 0d 28 64 65 |t select|ion..(de|
|000009c0| 66 6d 65 74 68 6f 64 20 | 6d 61 70 63 2d 73 65 6c |fmethod |mapc-sel|
|000009d0| 65 63 74 61 62 6c 65 2d | 63 6c 75 73 74 65 72 20 |ectable-|cluster |
|000009e0| 28 28 73 76 20 73 65 6c | 65 63 74 61 62 6c 65 2d |((sv sel|ectable-|
|000009f0| 73 76 6d 29 20 66 6e 20 | 26 6f 70 74 69 6f 6e 61 |svm) fn |&optiona|
|00000a00| 6c 20 73 65 6c 65 63 74 | 65 64 2d 6f 6e 6c 79 2d |l select|ed-only-|
|00000a10| 70 29 0d 20 20 3b 3b 73 | 65 61 72 63 68 20 73 74 |p). ;;s|earch st|
|00000a20| 61 72 74 73 20 66 72 6f | 6d 20 74 68 65 20 69 74 |arts fro|m the it|
|00000a30| 65 6d 27 73 20 63 6f 6e | 74 61 69 6e 65 72 0d 20 |em's con|tainer. |
|00000a40| 20 28 77 69 74 68 2d 73 | 6c 6f 74 73 20 28 73 65 | (with-s|lots (se|
|00000a50| 6c 65 63 74 69 6f 6e 2d | 63 6c 75 73 74 65 72 29 |lection-|cluster)|
|00000a60| 20 73 76 0d 20 20 20 20 | 28 66 6c 65 74 20 28 28 | sv. |(flet ((|
|00000a70| 6d 61 70 2d 66 6e 20 28 | 69 29 20 28 77 68 65 6e |map-fn (|i) (when|
|00000a80| 20 28 61 6e 64 20 28 65 | 71 20 28 73 65 6c 65 63 | (and (e|q (selec|
|00000a90| 74 69 6f 6e 2d 63 6c 75 | 73 74 65 72 20 69 29 20 |tion-clu|ster i) |
|00000aa0| 73 65 6c 65 63 74 69 6f | 6e 2d 63 6c 75 73 74 65 |selectio|n-cluste|
|00000ab0| 72 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |r). | |
|00000ac0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000ad0| 20 20 20 20 20 28 6f 72 | 20 28 73 65 6c 65 63 74 | (or| (select|
|00000ae0| 65 64 2d 70 20 69 29 20 | 28 6e 6f 74 20 73 65 6c |ed-p i) |(not sel|
|00000af0| 65 63 74 65 64 2d 6f 6e | 6c 79 2d 70 29 29 29 0d |ected-on|ly-p))).|
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b10| 20 20 20 20 20 20 20 20 | 20 28 66 75 6e 63 61 6c | | (funcal|
|00000b20| 6c 20 66 6e 20 69 29 29 | 29 29 0d 20 20 20 20 20 |l fn i))|)). |
|00000b30| 20 28 64 65 63 6c 61 72 | 65 20 28 64 79 6e 61 6d | (declar|e (dynam|
|00000b40| 69 63 2d 65 78 74 65 6e | 74 20 23 27 6d 61 70 2d |ic-exten|t #'map-|
|00000b50| 66 6e 29 29 0d 20 20 20 | 20 20 20 28 6d 61 70 2d |fn)). | (map-|
|00000b60| 73 75 62 76 69 65 77 73 | 20 28 76 69 65 77 2d 63 |subviews| (view-c|
|00000b70| 6f 6e 74 61 69 6e 65 72 | 20 73 76 29 20 23 27 6d |ontainer| sv) #'m|
|00000b80| 61 70 2d 66 6e 20 27 73 | 65 6c 65 63 74 61 62 6c |ap-fn 's|electabl|
|00000b90| 65 2d 73 76 6d 29 29 29 | 29 0d 20 20 20 20 20 20 |e-svm)))|). |
|00000ba0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000bb0| 20 20 20 20 20 20 20 20 | 20 0d 0d 28 64 65 66 6d | | ..(defm|
|00000bc0| 65 74 68 6f 64 20 73 65 | 6c 65 63 74 65 64 2d 69 |ethod se|lected-i|
|00000bd0| 74 65 6d 73 20 28 28 73 | 76 20 73 65 6c 65 63 74 |tems ((s|v select|
|00000be0| 61 62 6c 65 2d 73 76 6d | 29 29 0d 20 20 3b 3b 52 |able-svm|)). ;;R|
|00000bf0| 65 74 75 72 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |eturns a| list of|
|00000c00| 20 61 6c 6c 20 74 68 65 | 20 73 65 6c 65 63 74 65 | all the| selecte|
|00000c10| 64 20 69 74 65 6d 73 20 | 69 6e 20 64 69 27 73 20 |d items |in di's |
|00000c20| 63 6c 75 73 74 65 72 0d | 20 20 28 6c 65 74 20 28 |cluster.| (let (|
|00000c30| 28 69 74 65 6d 2d 6c 69 | 73 74 20 6e 69 6c 29 29 |(item-li|st nil))|
|00000c40| 0d 20 20 20 20 28 66 6c | 65 74 20 28 28 66 6e 20 |. (fl|et ((fn |
|00000c50| 28 69 29 20 28 70 75 73 | 68 20 69 20 69 74 65 6d |(i) (pus|h i item|
|00000c60| 2d 6c 69 73 74 29 29 29 | 0d 20 20 20 20 20 20 28 |-list)))|. (|
|00000c70| 64 65 63 6c 61 72 65 20 | 28 64 79 6e 61 6d 69 63 |declare |(dynamic|
|00000c80| 2d 65 78 74 65 6e 74 20 | 23 27 66 6e 29 29 0d 20 |-extent |#'fn)). |
|00000c90| 20 20 20 20 20 28 6d 61 | 70 63 2d 73 65 6c 65 63 | (ma|pc-selec|
|00000ca0| 74 61 62 6c 65 2d 63 6c | 75 73 74 65 72 20 73 76 |table-cl|uster sv|
|00000cb0| 20 23 27 66 6e 20 74 29 | 0d 20 20 20 20 20 20 28 | #'fn t)|. (|
|00000cc0| 6e 72 65 76 65 72 73 65 | 20 69 74 65 6d 2d 6c 69 |nreverse| item-li|
|00000cd0| 73 74 29 29 29 29 0d 0d | 28 64 65 66 6d 65 74 68 |st))))..|(defmeth|
|00000ce0| 6f 64 20 28 73 65 74 66 | 20 73 65 6c 65 63 74 65 |od (setf| selecte|
|00000cf0| 64 2d 69 74 65 6d 73 29 | 20 28 69 74 65 6d 73 20 |d-items)| (items |
|00000d00| 28 73 76 20 73 65 6c 65 | 63 74 61 62 6c 65 2d 73 |(sv sele|ctable-s|
|00000d10| 76 6d 29 29 0d 20 20 28 | 77 69 74 68 6f 75 74 2d |vm)). (|without-|
|00000d20| 69 6e 74 65 72 72 75 70 | 74 73 0d 20 20 20 28 64 |interrup|ts. (d|
|00000d30| 65 73 65 6c 65 63 74 2d | 61 6c 6c 20 73 76 29 0d |eselect-|all sv).|
|00000d40| 20 20 20 28 64 6f 6c 69 | 73 74 20 28 69 20 69 74 | (doli|st (i it|
|00000d50| 65 6d 73 29 20 28 73 65 | 6c 65 63 74 2d 69 74 65 |ems) (se|lect-ite|
|00000d60| 6d 20 69 29 29 29 29 0d | 0d 3b 3b 3b 3b 3b 3b 3b |m i)))).|.;;;;;;;|
|00000d70| 3b 3b 3b 0d 3b 3b 4e 6f | 74 65 3a 20 74 68 65 20 |;;;.;;No|te: the |
|00000d80| 64 72 61 77 2d 6e 6f 77 | 2d 70 20 69 73 20 70 72 |draw-now|-p is pr|
|00000d90| 6f 76 69 64 65 64 20 66 | 6f 72 20 75 73 69 6e 67 |ovided f|or using|
|00000da0| 20 74 68 65 73 65 20 6d | 65 74 68 6f 64 73 20 61 | these m|ethods a|
|00000db0| 74 0d 3b 3b 69 6e 74 65 | 72 72 75 70 74 20 74 69 |t.;;inte|rrupt ti|
|00000dc0| 6d 65 20 28 65 2e 67 2e | 20 64 75 72 69 6e 67 20 |me (e.g.| during |
|00000dd0| 63 6c 69 63 6b 20 65 76 | 65 6e 74 20 68 61 6e 64 |click ev|ent hand|
|00000de0| 6c 69 6e 67 29 2e 20 4e | 6f 72 6d 61 6c 6c 79 20 |ling). N|ormally |
|00000df0| 79 6f 75 0d 3b 3b 73 68 | 6f 75 6c 64 20 6c 65 74 |you.;;sh|ould let|
|00000e00| 20 64 72 61 77 2d 6e 6f | 77 2d 70 20 64 65 66 61 | draw-no|w-p defa|
|00000e10| 75 6c 74 20 74 6f 20 6e | 69 6c 2e 20 49 66 20 79 |ult to n|il. If y|
|00000e20| 6f 75 20 75 73 65 20 61 | 20 6e 6f 6e 2d 6e 69 6c |ou use a| non-nil|
|00000e30| 0d 3b 3b 64 72 61 77 2d | 6e 6f 77 2d 70 2c 20 6d |.;;draw-|now-p, m|
|00000e40| 61 6b 65 20 73 75 72 65 | 20 74 68 65 20 63 75 72 |ake sure| the cur|
|00000e50| 72 65 6e 74 20 76 69 65 | 77 20 69 73 20 66 6f 63 |rent vie|w is foc|
|00000e60| 75 73 65 64 20 74 6f 20 | 74 68 65 20 69 74 65 6d |used to |the item|
|00000e70| 27 73 0d 3b 3b 63 6f 6e | 74 61 69 6e 65 72 2e 0d |'s.;;con|tainer..|
|00000e80| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 73 65 6c 65 |.(defmet|hod sele|
|00000e90| 63 74 2d 69 74 65 6d 20 | 28 28 73 76 20 73 65 6c |ct-item |((sv sel|
|00000ea0| 65 63 74 61 62 6c 65 2d | 73 76 6d 29 20 26 6b 65 |ectable-|svm) &ke|
|00000eb0| 79 20 64 72 61 77 2d 6e | 6f 77 2d 70 29 0d 20 20 |y draw-n|ow-p). |
|00000ec0| 28 75 6e 6c 65 73 73 20 | 28 73 65 6c 65 63 74 65 |(unless |(selecte|
|00000ed0| 64 2d 70 20 73 76 29 0d | 20 20 20 20 28 73 65 74 |d-p sv).| (set|
|00000ee0| 66 20 28 73 65 6c 65 63 | 74 65 64 2d 70 20 73 76 |f (selec|ted-p sv|
|00000ef0| 29 20 74 29 0d 20 20 20 | 20 28 69 66 20 64 72 61 |) t). | (if dra|
|00000f00| 77 2d 6e 6f 77 2d 70 0d | 20 20 20 20 20 20 28 68 |w-now-p.| (h|
|00000f10| 69 6c 69 74 65 2d 73 65 | 6c 65 63 74 65 64 2d 69 |ilite-se|lected-i|
|00000f20| 74 65 6d 20 73 76 20 74 | 29 0d 20 20 20 20 20 20 |tem sv t|). |
|00000f30| 28 69 6e 76 61 6c 69 64 | 61 74 65 2d 76 69 65 77 |(invalid|ate-view|
|00000f40| 20 73 76 20 74 29 29 29 | 29 0d 0d 28 64 65 66 6d | sv t)))|)..(defm|
|00000f50| 65 74 68 6f 64 20 64 65 | 73 65 6c 65 63 74 2d 69 |ethod de|select-i|
|00000f60| 74 65 6d 20 28 28 73 76 | 20 73 65 6c 65 63 74 61 |tem ((sv| selecta|
|00000f70| 62 6c 65 2d 73 76 6d 29 | 20 26 6b 65 79 20 64 72 |ble-svm)| &key dr|
|00000f80| 61 77 2d 6e 6f 77 2d 70 | 29 0d 20 20 28 77 68 65 |aw-now-p|). (whe|
|00000f90| 6e 20 28 73 65 6c 65 63 | 74 65 64 2d 70 20 73 76 |n (selec|ted-p sv|
|00000fa0| 29 0d 20 20 20 20 28 73 | 65 74 66 20 28 73 65 6c |). (s|etf (sel|
|00000fb0| 65 63 74 65 64 2d 70 20 | 73 76 29 20 6e 69 6c 29 |ected-p |sv) nil)|
|00000fc0| 0d 20 20 20 20 28 69 66 | 20 64 72 61 77 2d 6e 6f |. (if| draw-no|
|00000fd0| 77 2d 70 0d 20 20 20 20 | 20 20 28 68 69 6c 69 74 |w-p. | (hilit|
|00000fe0| 65 2d 73 65 6c 65 63 74 | 65 64 2d 69 74 65 6d 20 |e-select|ed-item |
|00000ff0| 73 76 20 6e 69 6c 29 0d | 20 20 20 20 20 20 28 69 |sv nil).| (i|
|00001000| 6e 76 61 6c 69 64 61 74 | 65 2d 76 69 65 77 20 73 |nvalidat|e-view s|
|00001010| 76 20 74 29 29 29 29 0d | 0d 28 64 65 66 6d 65 74 |v t)))).|.(defmet|
|00001020| 68 6f 64 20 64 65 73 65 | 6c 65 63 74 2d 61 6c 6c |hod dese|lect-all|
|00001030| 20 28 28 73 76 20 73 65 | 6c 65 63 74 61 62 6c 65 | ((sv se|lectable|
|00001040| 2d 73 76 6d 29 20 26 6b | 65 79 20 64 72 61 77 2d |-svm) &k|ey draw-|
|00001050| 6e 6f 77 2d 70 29 0d 20 | 20 28 66 6c 65 74 20 28 |now-p). | (flet (|
|00001060| 28 66 6e 20 28 69 29 20 | 28 64 65 73 65 6c 65 63 |(fn (i) |(deselec|
|00001070| 74 2d 69 74 65 6d 20 69 | 20 3a 64 72 61 77 2d 6e |t-item i| :draw-n|
|00001080| 6f 77 2d 70 20 64 72 61 | 77 2d 6e 6f 77 2d 70 29 |ow-p dra|w-now-p)|
|00001090| 29 29 0d 20 20 20 20 28 | 64 65 63 6c 61 72 65 20 |)). (|declare |
|000010a0| 28 64 79 6e 61 6d 69 63 | 2d 65 78 74 65 6e 74 20 |(dynamic|-extent |
|000010b0| 23 27 66 6e 29 29 0d 20 | 20 20 20 28 6d 61 70 63 |#'fn)). | (mapc|
|000010c0| 2d 73 65 6c 65 63 74 61 | 62 6c 65 2d 63 6c 75 73 |-selecta|ble-clus|
|000010d0| 74 65 72 20 73 76 20 23 | 27 66 6e 20 74 29 29 29 |ter sv #|'fn t)))|
|000010e0| 0d 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..;;;;;;|;;;;;;;;|
|000010f0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001100| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001110| 3b 3b 3b 3b 0d 3b 3b 73 | 70 65 63 69 61 6c 69 7a |;;;;.;;s|pecializ|
|00001120| 61 74 69 6f 6e 73 20 66 | 6f 72 20 68 61 6e 64 6c |ations f|or handl|
|00001130| 69 6e 67 20 64 72 61 67 | 67 69 6e 67 20 73 65 6c |ing drag|ging sel|
|00001140| 65 63 74 69 6f 6e 73 0d | 0d 28 64 65 63 6c 61 69 |ections.|.(declai|
|00001150| 6d 20 28 66 74 79 70 65 | 20 28 66 75 6e 63 74 69 |m (ftype| (functi|
|00001160| 6f 6e 20 28 26 72 65 73 | 74 20 74 29 20 74 29 0d |on (&res|t t) t).|
|00001170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001180| 64 72 6f 70 2d 61 63 74 | 69 6f 6e 0d 20 20 20 20 |drop-act|ion. |
|00001190| 20 20 20 20 20 20 20 20 | 20 20 20 20 64 72 61 67 | | drag|
|000011a0| 2d 61 63 74 69 6f 6e 0d | 20 20 20 20 20 20 20 20 |-action.| |
|000011b0| 20 20 20 20 20 20 20 20 | 64 72 61 67 2d 65 6e 64 | |drag-end|
|000011c0| 2d 61 63 74 69 6f 6e 0d | 20 20 20 20 20 20 20 20 |-action.| |
|000011d0| 20 20 20 20 20 20 20 20 | 73 65 74 2d 64 72 61 67 | |set-drag|
|000011e0| 2d 6f 75 74 6c 69 6e 65 | 2d 72 67 6e 29 29 0d 0d |-outline|-rgn))..|
|000011f0| 28 64 65 66 6d 65 74 68 | 6f 64 20 73 65 74 2d 44 |(defmeth|od set-D|
|00001200| 72 61 67 47 72 61 79 52 | 67 6e 2d 61 72 65 61 73 |ragGrayR|gn-areas|
|00001210| 20 3a 61 66 74 65 72 20 | 28 28 73 76 20 73 65 6c | :after |((sv sel|
|00001220| 65 63 74 61 62 6c 65 2d | 73 76 6d 29 20 77 68 65 |ectable-|svm) whe|
|00001230| 72 65 20 64 72 61 67 2d | 72 67 6e 20 6c 69 6d 69 |re drag-|rgn limi|
|00001240| 74 52 65 63 74 20 73 6c | 6f 70 52 65 63 74 29 0d |tRect sl|opRect).|
|00001250| 20 20 3b 3b 73 70 65 63 | 69 61 6c 69 7a 65 20 74 | ;;spec|ialize t|
|00001260| 68 65 20 64 72 61 67 2d | 72 67 6e 20 74 6f 20 62 |he drag-|rgn to b|
|00001270| 65 20 74 68 65 20 75 6e | 69 6f 6e 20 6f 66 20 61 |e the un|ion of a|
|00001280| 6c 6c 20 73 65 6c 65 63 | 74 65 64 20 69 74 65 6d |ll selec|ted item|
|00001290| 73 0d 20 20 28 64 65 63 | 6c 61 72 65 20 28 69 67 |s. (dec|lare (ig|
|000012a0| 6e 6f 72 65 20 77 68 65 | 72 65 20 6c 69 6d 69 74 |nore whe|re limit|
|000012b0| 52 65 63 74 20 73 6c 6f | 70 52 65 63 74 29 29 0d |Rect slo|pRect)).|
|000012c0| 20 20 28 77 69 74 68 2d | 6d 61 63 70 74 72 73 20 | (with-|macptrs |
|000012d0| 28 28 74 65 6d 70 2d 72 | 67 6e 20 28 23 5f 4e 65 |((temp-r|gn (#_Ne|
|000012e0| 77 52 67 6e 29 29 29 0d | 20 20 20 20 28 66 6c 65 |wRgn))).| (fle|
|000012f0| 74 20 28 28 61 64 64 2d | 72 67 6e 20 28 69 29 0d |t ((add-|rgn (i).|
|00001300| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 28 73 65 | | (se|
|00001310| 74 2d 64 72 61 67 2d 6f | 75 74 6c 69 6e 65 2d 72 |t-drag-o|utline-r|
|00001320| 67 6e 20 69 20 74 65 6d | 70 2d 72 67 6e 29 0d 20 |gn i tem|p-rgn). |
|00001330| 20 20 20 20 20 20 20 20 | 20 20 20 20 28 23 5f 55 | | (#_U|
|00001340| 6e 69 6f 6e 52 67 6e 20 | 74 65 6d 70 2d 72 67 6e |nionRgn |temp-rgn|
|00001350| 20 64 72 61 67 2d 72 67 | 6e 20 64 72 61 67 2d 72 | drag-rg|n drag-r|
|00001360| 67 6e 29 29 29 0d 20 20 | 20 20 20 20 28 64 65 63 |gn))). | (dec|
|00001370| 6c 61 72 65 20 28 64 79 | 6e 61 6d 69 63 2d 65 78 |lare (dy|namic-ex|
|00001380| 74 65 6e 74 20 23 27 61 | 64 64 2d 72 67 6e 29 29 |tent #'a|dd-rgn))|
|00001390| 0d 20 20 20 20 20 20 28 | 6d 61 70 63 2d 73 65 6c |. (|mapc-sel|
|000013a0| 65 63 74 61 62 6c 65 2d | 63 6c 75 73 74 65 72 20 |ectable-|cluster |
|000013b0| 73 76 20 23 27 61 64 64 | 2d 72 67 6e 20 74 29 29 |sv #'add|-rgn t))|
|000013c0| 0d 20 20 20 20 28 23 5f | 44 69 73 70 6f 73 65 52 |. (#_|DisposeR|
|000013d0| 67 6e 20 74 65 6d 70 2d | 72 67 6e 29 29 29 0d 0d |gn temp-|rgn)))..|
|000013e0| 28 64 65 66 6d 65 74 68 | 6f 64 20 64 72 61 67 67 |(defmeth|od dragg|
|000013f0| 61 62 6c 65 2d 70 20 28 | 28 73 76 20 73 65 6c 65 |able-p (|(sv sele|
|00001400| 63 74 61 62 6c 65 2d 73 | 76 6d 29 29 0d 20 20 3b |ctable-s|vm)). ;|
|00001410| 3b 4d 75 73 74 20 63 68 | 65 63 6b 20 69 66 20 74 |;Must ch|eck if t|
|00001420| 68 65 20 69 74 65 6d 20 | 69 73 20 73 65 6c 65 63 |he item |is selec|
|00001430| 74 65 64 20 62 65 66 6f | 72 65 20 61 6c 6c 6f 77 |ted befo|re allow|
|00001440| 69 6e 67 20 64 72 61 67 | 67 69 6e 67 2e 20 4e 6f |ing drag|ging. No|
|00001450| 72 6d 61 6c 6c 79 20 74 | 68 69 73 0d 20 20 3b 3b |rmally t|his. ;;|
|00001460| 69 73 6e 27 74 20 6e 65 | 65 64 65 64 20 63 61 75 |isn't ne|eded cau|
|00001470| 73 65 20 74 68 65 20 63 | 6c 69 63 6b 20 73 65 6c |se the c|lick sel|
|00001480| 65 63 74 73 20 74 68 65 | 20 69 74 65 6d 2c 20 62 |ects the| item, b|
|00001490| 75 74 20 61 20 73 68 69 | 66 74 2d 63 6c 69 63 6b |ut a shi|ft-click|
|000014a0| 20 63 61 6e 20 64 65 2d | 73 65 6c 65 63 74 2e 0d | can de-|select..|
|000014b0| 20 20 28 61 6e 64 20 28 | 73 65 6c 65 63 74 65 64 | (and (|selected|
|000014c0| 2d 70 20 73 76 29 20 28 | 63 61 6c 6c 2d 6e 65 78 |-p sv) (|call-nex|
|000014d0| 74 2d 6d 65 74 68 6f 64 | 29 29 29 0d 0d 28 64 65 |t-method|)))..(de|
|000014e0| 66 6d 65 74 68 6f 64 20 | 70 72 65 2d 64 72 61 67 |fmethod |pre-drag|
|000014f0| 2d 68 69 6c 69 74 65 20 | 28 28 73 76 20 73 65 6c |-hilite |((sv sel|
|00001500| 65 63 74 61 62 6c 65 2d | 73 76 6d 29 20 68 69 6c |ectable-|svm) hil|
|00001510| 69 74 65 2d 66 6c 61 67 | 29 0d 20 20 3b 3b 73 65 |ite-flag|). ;;se|
|00001520| 6c 65 63 74 61 62 6c 65 | 20 69 74 65 6d 73 20 61 |lectable| items a|
|00001530| 6c 72 65 61 64 79 20 68 | 69 6c 69 74 65 20 77 68 |lready h|ilite wh|
|00001540| 65 6e 20 63 6c 69 63 6b | 65 64 20 2d 20 73 6f 20 |en click|ed - so |
|00001550| 64 6f 20 6e 6f 74 68 69 | 6e 67 0d 20 20 28 64 65 |do nothi|ng. (de|
|00001560| 63 6c 61 72 65 20 28 69 | 67 6e 6f 72 65 20 73 76 |clare (i|gnore sv|
|00001570| 20 68 69 6c 69 74 65 2d | 66 6c 61 67 29 29 29 0d | hilite-|flag))).|
|00001580| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 64 72 61 67 |.(defmet|hod drag|
|00001590| 2d 69 74 65 6d 20 28 28 | 73 76 20 73 65 6c 65 63 |-item ((|sv selec|
|000015a0| 74 61 62 6c 65 2d 73 76 | 6d 29 20 77 68 65 72 65 |table-sv|m) where|
|000015b0| 29 0d 20 20 3b 3b 2a 63 | 75 72 72 65 6e 74 2d 64 |). ;;*c|urrent-d|
|000015c0| 72 61 67 2d 73 65 6c 65 | 63 74 69 6f 6e 2a 20 69 |rag-sele|ction* i|
|000015d0| 73 20 62 6f 75 6e 64 20 | 66 6f 72 20 74 68 65 20 |s bound |for the |
|000015e0| 64 75 72 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |duration| of the |
|000015f0| 64 72 61 67 2c 20 0d 20 | 20 3b 3b 73 6f 20 64 72 |drag, . | ;;so dr|
|00001600| 6f 70 70 61 62 6c 65 2d | 70 20 77 6f 6e 27 74 20 |oppable-|p won't |
|00001610| 68 61 76 65 20 74 6f 20 | 72 65 70 65 61 74 65 64 |have to |repeated|
|00001620| 6c 79 20 63 6f 6d 70 75 | 74 65 20 74 68 65 20 63 |ly compu|te the c|
|00001630| 75 72 72 65 6e 74 20 73 | 65 6c 65 63 74 69 6f 6e |urrent s|election|
|00001640| 2e 0d 20 20 28 64 65 63 | 6c 61 72 65 20 28 69 67 |.. (dec|lare (ig|
|00001650| 6e 6f 72 65 20 77 68 65 | 72 65 29 29 0d 20 20 28 |nore whe|re)). (|
|00001660| 6c 65 74 20 28 28 2a 63 | 75 72 72 65 6e 74 2d 64 |let ((*c|urrent-d|
|00001670| 72 61 67 2d 73 65 6c 65 | 63 74 69 6f 6e 2a 20 28 |rag-sele|ction* (|
|00001680| 73 65 6c 65 63 74 65 64 | 2d 69 74 65 6d 73 20 73 |selected|-items s|
|00001690| 76 29 29 29 0d 20 20 20 | 20 28 64 65 63 6c 61 72 |v))). | (declar|
|000016a0| 65 20 28 73 70 65 63 69 | 61 6c 20 2a 63 75 72 72 |e (speci|al *curr|
|000016b0| 65 6e 74 2d 64 72 61 67 | 2d 73 65 6c 65 63 74 69 |ent-drag|-selecti|
|000016c0| 6f 6e 2a 29 29 0d 20 20 | 20 20 28 63 61 6c 6c 2d |on*)). | (call-|
|000016d0| 6e 65 78 74 2d 6d 65 74 | 68 6f 64 29 29 29 0d 0d |next-met|hod)))..|
|000016e0| 28 64 65 66 6d 65 74 68 | 6f 64 20 64 72 6f 70 70 |(defmeth|od dropp|
|000016f0| 61 62 6c 65 2d 70 20 28 | 28 73 76 20 73 65 6c 65 |able-p (|(sv sele|
|00001700| 63 74 61 62 6c 65 2d 73 | 76 6d 29 20 28 74 61 72 |ctable-s|vm) (tar|
|00001710| 67 65 74 20 73 69 6d 70 | 6c 65 2d 76 69 65 77 29 |get simp|le-view)|
|00001720| 29 0d 20 20 3b 3b 64 69 | 73 61 6c 6c 6f 77 20 64 |). ;;di|sallow d|
|00001730| 72 6f 70 70 69 6e 67 20 | 6f 6e 20 61 6e 79 20 6d |ropping |on any m|
|00001740| 65 6d 62 65 72 20 6f 66 | 20 63 75 72 72 65 6e 74 |ember of| current|
|00001750| 20 73 65 6c 65 63 74 69 | 6f 6e 0d 20 20 28 64 65 | selecti|on. (de|
|00001760| 63 6c 61 72 65 20 28 73 | 70 65 63 69 61 6c 20 2a |clare (s|pecial *|
|00001770| 63 75 72 72 65 6e 74 2d | 64 72 61 67 2d 73 65 6c |current-|drag-sel|
|00001780| 65 63 74 69 6f 6e 2a 29 | 29 0d 20 20 28 75 6e 6c |ection*)|). (unl|
|00001790| 65 73 73 20 28 66 69 6e | 64 20 74 61 72 67 65 74 |ess (fin|d target|
|000017a0| 20 2a 63 75 72 72 65 6e | 74 2d 64 72 61 67 2d 73 | *curren|t-drag-s|
|000017b0| 65 6c 65 63 74 69 6f 6e | 2a 29 0d 20 20 20 20 28 |election|*). (|
|000017c0| 63 61 6c 6c 2d 6e 65 78 | 74 2d 6d 65 74 68 6f 64 |call-nex|t-method|
|000017d0| 29 29 29 0d 0d 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 0d |)))..;;;|;;;;;;;.|
|000017e0| 3b 3b 33 20 63 61 6c 6c | 20 61 63 74 69 6f 6e 20 |;;3 call| action |
|000017f0| 66 75 6e 63 74 69 6f 6e | 73 20 73 70 65 63 69 61 |function|s specia|
|00001800| 6c 69 7a 65 64 20 74 6f | 20 75 73 65 20 65 6e 74 |lized to| use ent|
|00001810| 69 72 65 20 73 65 6c 65 | 63 74 69 6f 6e 0d 0d 28 |ire sele|ction..(|
|00001820| 64 65 66 6d 65 74 68 6f | 64 20 63 61 6c 6c 2d 64 |defmetho|d call-d|
|00001830| 72 61 67 2d 61 63 74 69 | 6f 6e 20 28 28 73 76 20 |rag-acti|on ((sv |
|00001840| 73 65 6c 65 63 74 61 62 | 6c 65 2d 73 76 6d 29 29 |selectab|le-svm))|
|00001850| 0d 20 20 28 64 65 63 6c | 61 72 65 20 28 73 70 65 |. (decl|are (spe|
|00001860| 63 69 61 6c 20 2a 63 75 | 72 72 65 6e 74 2d 64 72 |cial *cu|rrent-dr|
|00001870| 61 67 2d 73 65 6c 65 63 | 74 69 6f 6e 2a 29 29 0d |ag-selec|tion*)).|
|00001880| 20 20 20 20 28 69 66 20 | 28 73 6c 6f 74 2d 76 61 | (if |(slot-va|
|00001890| 6c 75 65 20 73 76 20 27 | 61 6c 6c 2d 64 72 61 67 |lue sv '|all-drag|
|000018a0| 2d 61 63 74 69 6f 6e 73 | 2d 70 29 0d 20 20 20 20 |-actions|-p). |
|000018b0| 20 20 28 64 6f 6c 69 73 | 74 20 28 69 20 2a 63 75 | (dolis|t (i *cu|
|000018c0| 72 72 65 6e 74 2d 64 72 | 61 67 2d 73 65 6c 65 63 |rrent-dr|ag-selec|
|000018d0| 74 69 6f 6e 2a 29 20 28 | 64 72 61 67 2d 61 63 74 |tion*) (|drag-act|
|000018e0| 69 6f 6e 20 69 29 29 0d | 20 20 20 20 20 20 28 64 |ion i)).| (d|
|000018f0| 72 61 67 2d 61 63 74 69 | 6f 6e 20 73 76 29 29 29 |rag-acti|on sv)))|
|00001900| 0d 0d 28 64 65 66 6d 65 | 74 68 6f 64 20 63 61 6c |..(defme|thod cal|
|00001910| 6c 2d 64 72 61 67 2d 65 | 6e 64 2d 61 63 74 69 6f |l-drag-e|nd-actio|
|00001920| 6e 20 28 28 73 76 20 73 | 65 6c 65 63 74 61 62 6c |n ((sv s|electabl|
|00001930| 65 2d 73 76 6d 29 20 64 | 72 61 67 2d 6f 66 66 73 |e-svm) d|rag-offs|
|00001940| 65 74 20 64 65 73 74 2d | 70 6f 69 6e 74 29 0d 20 |et dest-|point). |
|00001950| 20 28 69 66 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 | (if (sl|ot-value|
|00001960| 20 73 76 20 27 61 6c 6c | 2d 64 72 61 67 2d 65 6e | sv 'all|-drag-en|
|00001970| 64 2d 61 63 74 69 6f 6e | 73 2d 70 29 0d 20 20 20 |d-action|s-p). |
|00001980| 20 28 66 6c 65 74 20 28 | 28 66 6e 20 28 69 29 20 | (flet (|(fn (i) |
|00001990| 28 64 72 61 67 2d 65 6e | 64 2d 61 63 74 69 6f 6e |(drag-en|d-action|
|000019a0| 20 69 20 64 72 61 67 2d | 6f 66 66 73 65 74 20 64 | i drag-|offset d|
|000019b0| 65 73 74 2d 70 6f 69 6e | 74 29 29 29 0d 20 20 20 |est-poin|t))). |
|000019c0| 20 20 20 28 64 65 63 6c | 61 72 65 20 28 64 79 6e | (decl|are (dyn|
|000019d0| 61 6d 69 63 2d 65 78 74 | 65 6e 74 20 23 27 66 6e |amic-ext|ent #'fn|
|000019e0| 29 29 0d 20 20 20 20 20 | 20 28 6d 61 70 63 2d 73 |)). | (mapc-s|
|000019f0| 65 6c 65 63 74 61 62 6c | 65 2d 63 6c 75 73 74 65 |electabl|e-cluste|
|00001a00| 72 20 73 76 20 23 27 66 | 6e 20 74 29 29 0d 20 20 |r sv #'f|n t)). |
|00001a10| 20 20 28 64 72 61 67 2d | 65 6e 64 2d 61 63 74 69 | (drag-|end-acti|
|00001a20| 6f 6e 20 73 76 20 64 72 | 61 67 2d 6f 66 66 73 65 |on sv dr|ag-offse|
|00001a30| 74 20 64 65 73 74 2d 70 | 6f 69 6e 74 29 29 29 0d |t dest-p|oint))).|
|00001a40| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 63 61 6c 6c |.(defmet|hod call|
|00001a50| 2d 64 72 6f 70 2d 61 63 | 74 69 6f 6e 20 28 28 73 |-drop-ac|tion ((s|
|00001a60| 76 20 73 65 6c 65 63 74 | 61 62 6c 65 2d 73 76 6d |v select|able-svm|
|00001a70| 29 20 28 74 61 72 67 65 | 74 20 73 69 6d 70 6c 65 |) (targe|t simple|
|00001a80| 2d 76 69 65 77 29 20 64 | 72 61 67 2d 6f 66 66 73 |-view) d|rag-offs|
|00001a90| 65 74 20 64 65 73 74 2d | 70 6f 69 6e 74 29 0d 20 |et dest-|point). |
|00001aa0| 20 28 69 66 20 28 73 6c | 6f 74 2d 76 61 6c 75 65 | (if (sl|ot-value|
|00001ab0| 20 73 76 20 27 61 6c 6c | 2d 64 72 61 67 2d 65 6e | sv 'all|-drag-en|
|00001ac0| 64 2d 61 63 74 69 6f 6e | 73 2d 70 29 0d 20 20 20 |d-action|s-p). |
|00001ad0| 20 28 66 6c 65 74 20 28 | 28 66 6e 20 28 69 29 20 | (flet (|(fn (i) |
|00001ae0| 28 64 72 6f 70 2d 61 63 | 74 69 6f 6e 20 69 20 74 |(drop-ac|tion i t|
|00001af0| 61 72 67 65 74 20 64 72 | 61 67 2d 6f 66 66 73 65 |arget dr|ag-offse|
|00001b00| 74 20 64 65 73 74 2d 70 | 6f 69 6e 74 29 29 29 0d |t dest-p|oint))).|
|00001b10| 20 20 20 20 20 20 28 64 | 65 63 6c 61 72 65 20 28 | (d|eclare (|
|00001b20| 64 79 6e 61 6d 69 63 2d | 65 78 74 65 6e 74 20 23 |dynamic-|extent #|
|00001b30| 27 66 6e 29 29 0d 20 20 | 20 20 20 20 28 6d 61 70 |'fn)). | (map|
|00001b40| 63 2d 73 65 6c 65 63 74 | 61 62 6c 65 2d 63 6c 75 |c-select|able-clu|
|00001b50| 73 74 65 72 20 73 76 20 | 23 27 66 6e 20 74 29 29 |ster sv |#'fn t))|
|00001b60| 0d 20 20 20 20 28 64 72 | 6f 70 2d 61 63 74 69 6f |. (dr|op-actio|
|00001b70| 6e 20 73 76 20 74 61 72 | 67 65 74 20 64 72 61 67 |n sv tar|get drag|
|00001b80| 2d 6f 66 66 73 65 74 20 | 64 65 73 74 2d 70 6f 69 |-offset |dest-poi|
|00001b90| 6e 74 29 29 29 0d 0d 0d | 3b 3b 3b 3b 3b 3b 3b 3b |nt)))...|;;;;;;;;|
|00001ba0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001bb0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001bc0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001bd0| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0d 3b |;;;;;;;;|;;;;;;.;|
|00001be0| 3b 20 73 65 6c 65 63 74 | 61 62 6c 65 20 76 69 65 |; select|able vie|
|00001bf0| 77 73 20 77 69 74 68 20 | 72 61 64 69 6f 20 62 75 |ws with |radio bu|
|00001c00| 74 74 6f 6e 20 62 65 68 | 61 76 69 6f 72 0d 0d 28 |tton beh|avior..(|
|00001c10| 64 65 66 63 6c 61 73 73 | 20 73 65 6c 65 63 74 61 |defclass| selecta|
|00001c20| 62 6c 65 2d 72 62 2d 73 | 76 6d 20 28 73 65 6c 65 |ble-rb-s|vm (sele|
|00001c30| 63 74 61 62 6c 65 2d 73 | 76 6d 29 20 28 29 29 0d |ctable-s|vm) ()).|
|00001c40| 0d 28 64 65 66 6d 65 74 | 68 6f 64 20 63 6c 69 63 |.(defmet|hod clic|
|00001c50| 6b 2d 75 6e 73 65 6c 65 | 63 74 65 64 2d 69 74 65 |k-unsele|cted-ite|
|00001c60| 6d 20 28 28 73 76 20 73 | 65 6c 65 63 74 61 62 6c |m ((sv s|electabl|
|00001c70| 65 2d 72 62 2d 73 76 6d | 29 20 73 68 69 66 74 2d |e-rb-svm|) shift-|
|00001c80| 70 29 0d 20 20 28 64 65 | 63 6c 61 72 65 20 28 69 |p). (de|clare (i|
|00001c90| 67 6e 6f 72 65 20 73 68 | 69 66 74 2d 70 29 29 0d |gnore sh|ift-p)).|
|00001ca0| 20 20 28 64 65 73 65 6c | 65 63 74 2d 61 6c 6c 20 | (desel|ect-all |
|00001cb0| 73 76 20 3a 64 72 61 77 | 2d 6e 6f 77 2d 70 20 74 |sv :draw|-now-p t|
|00001cc0| 29 0d 20 20 28 73 65 6c | 65 63 74 2d 69 74 65 6d |). (sel|ect-item|
|00001cd0| 20 73 76 20 3a 64 72 61 | 77 2d 6e 6f 77 2d 70 20 | sv :dra|w-now-p |
|00001ce0| 74 29 29 0d 0d 28 64 65 | 66 6d 65 74 68 6f 64 20 |t))..(de|fmethod |
|00001cf0| 63 6c 69 63 6b 2d 73 65 | 6c 65 63 74 65 64 2d 69 |click-se|lected-i|
|00001d00| 74 65 6d 20 28 28 73 76 | 20 73 65 6c 65 63 74 61 |tem ((sv| selecta|
|00001d10| 62 6c 65 2d 72 62 2d 73 | 76 6d 29 20 73 68 69 66 |ble-rb-s|vm) shif|
|00001d20| 74 2d 70 29 0d 20 20 28 | 64 65 63 6c 61 72 65 20 |t-p). (|declare |
|00001d30| 28 69 67 6e 6f 72 65 20 | 73 76 20 73 68 69 66 74 |(ignore |sv shift|
|00001d40| 2d 70 29 29 29 0d 0d 0d | 3b 3b 3b 3b 3b 3b 3b 3b |-p)))...|;;;;;;;;|
|00001d50| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001d60| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001d70| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001d80| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 0d 3b |;;;;;;;;|;;;;;;.;|
|00001d90| 3b 20 73 65 6c 65 63 74 | 61 62 6c 65 20 76 69 65 |; select|able vie|
|00001da0| 77 73 20 77 69 74 68 20 | 63 68 65 63 6b 20 62 6f |ws with |check bo|
|00001db0| 78 20 62 65 68 61 76 69 | 6f 72 0d 0d 28 64 65 66 |x behavi|or..(def|
|00001dc0| 63 6c 61 73 73 20 73 65 | 6c 65 63 74 61 62 6c 65 |class se|lectable|
|00001dd0| 2d 63 62 2d 73 76 6d 20 | 28 73 65 6c 65 63 74 61 |-cb-svm |(selecta|
|00001de0| 62 6c 65 2d 73 76 6d 29 | 20 28 29 29 0d 0d 28 64 |ble-svm)| ())..(d|
|00001df0| 65 66 6d 65 74 68 6f 64 | 20 63 6c 69 63 6b 2d 75 |efmethod| click-u|
|00001e00| 6e 73 65 6c 65 63 74 65 | 64 2d 69 74 65 6d 20 28 |nselecte|d-item (|
|00001e10| 28 73 76 20 73 65 6c 65 | 63 74 61 62 6c 65 2d 63 |(sv sele|ctable-c|
|00001e20| 62 2d 73 76 6d 29 20 73 | 68 69 66 74 2d 70 29 0d |b-svm) s|hift-p).|
|00001e30| 20 20 28 64 65 63 6c 61 | 72 65 20 28 69 67 6e 6f | (decla|re (igno|
|00001e40| 72 65 20 73 68 69 66 74 | 2d 70 29 29 0d 20 20 28 |re shift|-p)). (|
|00001e50| 73 65 6c 65 63 74 2d 69 | 74 65 6d 20 73 76 20 3a |select-i|tem sv :|
|00001e60| 64 72 61 77 2d 6e 6f 77 | 2d 70 20 74 29 29 0d 0d |draw-now|-p t))..|
|00001e70| 28 64 65 66 6d 65 74 68 | 6f 64 20 63 6c 69 63 6b |(defmeth|od click|
|00001e80| 2d 73 65 6c 65 63 74 65 | 64 2d 69 74 65 6d 20 28 |-selecte|d-item (|
|00001e90| 28 73 76 20 73 65 6c 65 | 63 74 61 62 6c 65 2d 63 |(sv sele|ctable-c|
|00001ea0| 62 2d 73 76 6d 29 20 73 | 68 69 66 74 2d 70 29 0d |b-svm) s|hift-p).|
|00001eb0| 20 20 28 64 65 63 6c 61 | 72 65 20 28 69 67 6e 6f | (decla|re (igno|
|00001ec0| 72 65 20 73 68 69 66 74 | 2d 70 29 29 0d 20 20 28 |re shift|-p)). (|
|00001ed0| 64 65 73 65 6c 65 63 74 | 2d 69 74 65 6d 20 73 76 |deselect|-item sv|
|00001ee0| 20 3a 64 72 61 77 2d 6e | 6f 77 2d 70 20 74 29 29 | :draw-n|ow-p t))|
|00001ef0| 0d 0d 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |..;;;;;;|;;;;;;;;|
|00001f00| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f10| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f20| 3b 3b 3b 3b 3b 3b 3b 3b | 3b 3b 3b 3b 3b 3b 3b 3b |;;;;;;;;|;;;;;;;;|
|00001f30| 3b 3b 3b 3b 3b 3b 3b 3b | 0d 0d 23 7c 0d 0d 3b 3b |;;;;;;;;|..#|..;;|
|00001f40| 3b 20 61 20 6d 6f 64 65 | 73 74 20 65 78 61 6d 70 |; a mode|st examp|
|00001f50| 6c 65 20 2d 20 61 64 64 | 69 6e 67 20 73 65 6c 65 |le - add|ing sele|
|00001f60| 63 74 20 62 65 68 61 76 | 69 6f 72 20 74 6f 20 73 |ct behav|ior to s|
|00001f70| 74 61 74 69 63 20 74 65 | 78 74 20 64 69 61 6c 6f |tatic te|xt dialo|
|00001f80| 67 20 69 74 65 6d 73 0d | 0d 28 64 65 66 63 6c 61 |g items.|.(defcla|
|00001f90| 73 73 20 73 74 73 65 6c | 20 28 73 65 6c 65 63 74 |ss stsel| (select|
|00001fa0| 61 62 6c 65 2d 73 76 6d | 20 73 74 61 74 69 63 2d |able-svm| static-|
|00001fb0| 74 65 78 74 2d 64 69 61 | 6c 6f 67 2d 69 74 65 6d |text-dia|log-item|
|00001fc0| 29 20 28 29 29 0d 3b 28 | 64 65 66 63 6c 61 73 73 |) ()).;(|defclass|
|00001fd0| 20 73 74 73 65 6c 20 28 | 73 65 6c 65 63 74 61 62 | stsel (|selectab|
|00001fe0| 6c 65 2d 72 62 2d 73 76 | 6d 20 73 74 61 74 69 63 |le-rb-sv|m static|
|00001ff0| 2d 74 65 78 74 2d 64 69 | 61 6c 6f 67 2d 69 74 65 |-text-di|alog-ite|
|00002000| 6d 29 20 28 29 29 0d 3b | 28 64 65 66 63 6c 61 73 |m) ()).;|(defclas|
|00002010| 73 20 73 74 73 65 6c 20 | 28 73 65 6c 65 63 74 61 |s stsel |(selecta|
|00002020| 62 6c 65 2d 63 62 2d 73 | 76 6d 20 73 74 61 74 69 |ble-cb-s|vm stati|
|00002030| 63 2d 74 65 78 74 2d 64 | 69 61 6c 6f 67 2d 69 74 |c-text-d|ialog-it|
|00002040| 65 6d 29 20 28 29 29 0d | 0d 28 73 65 74 66 20 2a |em) ()).|.(setf *|
|00002050| 74 65 73 74 2d 77 2a 0d | 20 20 20 20 20 20 28 6d |test-w*.| (m|
|00002060| 61 6b 65 2d 69 6e 73 74 | 61 6e 63 65 20 27 64 69 |ake-inst|ance 'di|
|00002070| 61 6c 6f 67 0d 20 20 20 | 20 20 20 20 20 20 20 20 |alog. | |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 3a 77 69 6e 64 6f | | :windo|
|00002090| 77 2d 74 79 70 65 20 3a | 64 6f 63 75 6d 65 6e 74 |w-type :|document|
|000020a0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000020b0| 20 20 20 20 20 20 3a 76 | 69 65 77 2d 70 6f 73 69 | :v|iew-posi|
|000020c0| 74 69 6f 6e 20 3a 63 65 | 6e 74 65 72 65 64 0d 20 |tion :ce|ntered. |
|000020d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020e0| 20 20 20 20 3a 76 69 65 | 77 2d 73 69 7a 65 20 23 | :vie|w-size #|
|000020f0| 40 28 32 30 30 20 31 30 | 30 29 0d 20 20 20 20 20 |@(200 10|0). |
|00002100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002110| 3a 77 69 6e 64 6f 77 2d | 74 69 74 6c 65 20 22 73 |:window-|title "s|
|00002120| 65 6c 65 63 74 61 62 6c | 65 2d 73 76 6d 20 64 65 |electabl|e-svm de|
|00002130| 6d 6f 22 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |mo". | |
|00002140| 20 20 20 20 20 20 20 20 | 20 3a 63 6c 6f 73 65 2d | | :close-|
|00002150| 62 6f 78 2d 70 20 74 0d | 20 20 20 20 20 20 20 20 |box-p t.| |
|00002160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 63 6f | | :co|
|00002170| 6c 6f 72 2d 70 20 74 0d | 20 20 20 20 20 20 20 20 |lor-p t.| |
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3a 76 69 | | :vi|
|00002190| 65 77 2d 73 75 62 76 69 | 65 77 73 0d 20 20 20 20 |ew-subvi|ews. |
|000021a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021b0| 20 28 6c 69 73 74 20 28 | 6d 61 6b 65 2d 69 6e 73 | (list (|make-ins|
|000021c0| 74 61 6e 63 65 20 27 73 | 74 73 65 6c 0d 20 20 20 |tance 's|tsel. |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021f0| 20 20 20 20 20 20 20 20 | 20 20 3a 76 69 65 77 2d | | :view-|
|00002200| 70 6f 73 69 74 69 6f 6e | 20 23 40 28 32 30 20 32 |position| #@(20 2|
|00002210| 30 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |0). | |
|00002220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002240| 3a 64 69 61 6c 6f 67 2d | 69 74 65 6d 2d 74 65 78 |:dialog-|item-tex|
|00002250| 74 20 22 69 74 65 6d 20 | 31 22 0d 20 20 20 20 20 |t "item |1". |
|00002260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002280| 20 20 20 20 20 20 20 20 | 3a 76 69 65 77 2d 6e 69 | |:view-ni|
|00002290| 63 6b 2d 6e 61 6d 65 20 | 3a 69 31 0d 20 20 20 20 |ck-name |:i1. |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022c0| 20 20 20 20 20 20 20 20 | 20 3a 73 65 6c 65 63 74 | | :select|
|000022d0| 69 6f 6e 2d 63 6c 75 73 | 74 65 72 20 31 0d 20 20 |ion-clus|ter 1. |
|000022e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002300| 20 20 20 20 20 20 20 20 | 20 20 20 29 0d 20 20 20 | | ). |
|00002310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002320| 20 20 20 20 20 20 20 20 | 28 6d 61 6b 65 2d 69 6e | |(make-in|
|00002330| 73 74 61 6e 63 65 20 27 | 73 74 73 65 6c 0d 20 20 |stance '|stsel. |
|00002340| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002350| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002360| 20 20 20 20 20 20 20 20 | 20 20 20 3a 76 69 65 77 | | :view|
|00002370| 2d 70 6f 73 69 74 69 6f | 6e 20 23 40 28 32 30 20 |-positio|n #@(20 |
|00002380| 34 30 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |40). | |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023b0| 20 3a 64 69 61 6c 6f 67 | 2d 69 74 65 6d 2d 74 65 | :dialog|-item-te|
|000023c0| 78 74 20 22 69 74 65 6d | 20 32 22 0d 20 20 20 20 |xt "item| 2". |
|000023d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023f0| 20 20 20 20 20 20 20 20 | 20 3a 76 69 65 77 2d 6e | | :view-n|
|00002400| 69 63 6b 2d 6e 61 6d 65 | 20 3a 69 32 0d 20 20 20 |ick-name| :i2. |
|00002410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002430| 20 20 20 20 20 20 20 20 | 20 20 3a 73 65 6c 65 63 | | :selec|
|00002440| 74 69 6f 6e 2d 63 6c 75 | 73 74 65 72 20 31 0d 20 |tion-clu|ster 1. |
|00002450| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002460| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002470| 20 20 20 20 20 20 20 20 | 20 20 20 20 29 0d 20 20 | | ). |
|00002480| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002490| 20 20 20 20 20 20 20 20 | 20 28 6d 61 6b 65 2d 69 | | (make-i|
|000024a0| 6e 73 74 61 6e 63 65 20 | 27 73 74 73 65 6c 0d 20 |nstance |'stsel. |
|000024b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000024d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 76 69 65 | | :vie|
|000024e0| 77 2d 70 6f 73 69 74 69 | 6f 6e 20 23 40 28 32 30 |w-positi|on #@(20|
|000024f0| 20 36 30 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 | 60). | |
|00002500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002520| 20 20 3a 64 69 61 6c 6f | 67 2d 69 74 65 6d 2d 74 | :dialo|g-item-t|
|00002530| 65 78 74 20 22 49 74 65 | 6d 20 33 22 0d 20 20 20 |ext "Ite|m 3". |
|00002540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002560| 20 20 20 20 20 20 20 20 | 20 20 3a 76 69 65 77 2d | | :view-|
|00002570| 6e 69 63 6b 2d 6e 61 6d | 65 20 3a 69 32 0d 20 20 |nick-nam|e :i2. |
|00002580| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025a0| 20 20 20 20 20 20 20 20 | 20 20 20 3a 73 65 6c 65 | | :sele|
|000025b0| 63 74 69 6f 6e 2d 63 6c | 75 73 74 65 72 20 31 0d |ction-cl|uster 1.|
|000025c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000025e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 29 0d 0d | | )..|
|000025f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002600| 20 20 20 20 20 20 20 20 | 20 20 20 29 29 29 0d 0d | | )))..|
|00002610| 3b 28 73 65 6c 65 63 74 | 65 64 2d 69 74 65 6d 73 |;(select|ed-items|
|00002620| 20 28 76 69 65 77 2d 6e | 61 6d 65 64 20 3a 69 31 | (view-n|amed :i1|
|00002630| 20 2a 74 65 73 74 2d 77 | 2a 29 29 0d 0d 7c 23 00 | *test-w|*))..|#.|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002680| 00 00 01 00 00 00 01 68 | 00 00 00 68 00 00 00 52 |.......h|...h...R|
|00002690| 29 0d 28 70 72 6f 76 69 | 64 65 20 3a 73 65 6c 65 |).(provi|de :sele|
|000026a0| 63 74 61 62 6c 65 2d 64 | 69 6d 29 0d 3b 3b 3b 3b |ctable-d|im).;;;;|
|000026b0| 13 73 65 6c 65 63 74 61 | 62 6c 65 2d 73 76 6d 2e |.selecta|ble-svm.|
|000026c0| 6c 69 73 70 02 00 00 00 | 54 45 58 54 43 43 4c 32 |lisp....|TEXTCCL2|
|000026d0| 00 00 54 45 58 54 43 43 | 4c 32 01 00 00 68 01 00 |..TEXTCC|L2...h..|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 a4 c5 8f 14 00 00 | 25 bf 00 00 01 ba 6c 65 |........|%.....le|
|00002700| 2d 64 69 6d 2e 4c 69 73 | 70 0d 3b 3b 0d 3b 3b 20 |-dim.Lis|p.;;.;; |
|00002710| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 31 39 39 31 |Copyrigh|t . 1991|
|00002720| 20 4e 6f 72 74 68 77 65 | 73 74 65 72 6e 20 55 6e | Northwe|stern Un|
|00002730| 69 76 65 72 73 69 74 79 | 20 49 6e 73 74 69 74 75 |iversity| Institu|
|00002740| 74 65 20 66 6f 72 20 74 | 68 65 20 4c 65 61 72 6e |te for t|he Learn|
|00002750| 69 6e 67 20 53 63 69 65 | 6e 63 65 73 0d 3b 3b 20 |ing Scie|nces.;; |
|00002760| 41 6c 6c 20 52 69 67 68 | 74 73 20 52 65 73 65 72 |All Righ|ts Reser|
|00002770| 76 65 64 0d 3b 3b 0d 3b | 3b 20 61 75 74 68 6f 72 |ved.;;.;|; author|
|00002780| 00 00 00 0a 00 01 00 16 | 0a 00 01 00 00 00 00 00 |........|........|
|00002790| 00 48 00 0a 43 6f 75 72 | 69 65 72 00 00 00 00 00 |.H..Cour|ier.....|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 06 00 08 | 00 7b 00 68 03 1b 02 5b |........|.{.h...[|
|000027c0| 00 7b 00 68 03 1b 02 5b | 00 00 00 00 00 00 0b 6f |.{.h...[|.......o|
|000027d0| 00 00 0b 6f 00 00 05 4e | 01 00 00 00 00 0a 00 00 |...o...N|........|
|000027e0| 07 43 6f 75 72 69 65 72 | 00 00 01 00 00 00 01 68 |.Courier|.......h|
|000027f0| 00 00 00 68 00 00 00 52 | 00 dd 86 dc 0b 06 00 00 |...h...R|........|
|00002800| 00 1c 00 52 00 01 46 52 | 45 44 00 01 00 12 4d 50 |...R..FR|ED....MP|
|00002810| 53 52 00 00 00 2a 00 02 | ff ff 00 00 00 00 00 00 |SR...*..|........|
|00002820| 00 00 00 03 ff ff 00 00 | 00 5a 00 00 00 00 03 ed |........|.Z......|
|00002830| ff ff 00 00 00 0e 00 de | 66 a0 00 00 00 00 00 00 |........|f.......|
|00002840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+